@import "./variable.scss";
@import "./base.scss";

header {
    .nav {
        width: 100%;
        height: 36px;
        background-color: #f5f5f5;
        border-bottom: 1px solid #eee;
        margin-bottom: 30px;

        .navBox {
            width: 990px;
            margin: 0 auto;
            line-height: 36px;
            font-size: 12px;
            color: #6c6c6c;
            margin-bottom: 20px;
            overflow: hidden;

            .loginBox {
                float: left;

                li {
                    float: left;
                    padding: 0px 10px;

                    &:hover {
                        color: $theme;
                    }

                    &.active {
                        color: $theme;
                    }
                }
            }

            .loginShadow {
                display: none;
                padding: 20px;
                box-sizing: border-box;
                width: 270px;
                height: 150px;
                background-color: #fff;
                box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
                position: fixed;
                top: 35px;
                left: 138px;
                z-index: 100;

                .zhezhao {
                    width: 180px;
                    height: 36px;
                    position: fixed;
                    top: 0;
                    left: 138px;
                    background-color: rgba(0, 0, 0, 0);
                }

                .shadowImag {
                    width: 100%;
                    line-height: 20px;
                    text-align: left;

                    span {
                        float: right;
                        padding: 0px 10px;

                        &:hover {
                            color: $theme;
                            cursor: pointer;
                        }
                    }
                }

                .shadowImg {
                    width: 50px;
                    height: 50px;
                    border-radius: 25px;
                    overflow: hidden;
                }

                .shadowState {
                    text-align: center;
                    line-height: 24px;
                    color: #ff934c;
                    border: 1px solid #ff934c;
                    background-color: rgb(254, 246, 229);
                }
            }

            .navMenu {
                float: right;

                li {
                    float: left;
                    padding: 0px 10px;

                    &:hover {
                        color: $theme;
                    }

                    &.active {
                        color: $theme;
                    }
                }
            }
        }
    }
}



section {
    @extend type_area;
    width: 990px;

    .top {
        height: 55px;
        position: relative;

        img {
            width: 181px;
            height: 45px;
            float: left;
        }

        input {
            border: 3px solid $theme;
            width: 422px;
            height: 35px;
            float: right;
            box-sizing: border-box;
            color: #999;
            text-indent: 10px;
        }

        button {
            color: #fff;
            width: 93px;
            height: 35px;
            font-size: 20px;
            background-color: $theme;
            float: right;
            font-weight: 700;
        }

        .searchBox {
            position: absolute;
            top: 40px;
            display: none;
            right: 94px;
            width: 420px;
            border: 1px solid #eee;
            background-color: #fff;

            li {
                font-size: 12px;
                color: #666;
                line-height: 20px;
                text-indent: 10px;

                &:hover {
                    color: #fff;
                    background-color: $theme;
                }
            }
        }
    }

    .fl {
        @extend type_area;
        width: 990px;
        border-bottom: 2px solid #eee;
        height: 60px;

        ul {
            li {
                font-weight: 700;
                text-align: center;
                font-size: 18px;
                float: left;
                padding: 18px 10px;

                &.active {
                    border-bottom: 2px solid $theme;
                    color: $theme;
                }
            }
        }
    }
}

.box {
    width: 1000px;
    margin: 20px auto;
    border: 1px solid #ccc;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    .tBox {
        flex: 1;
        background-color: #fcfcfc;
        padding-left: 20px;
        box-sizing: border-box;

        .topBox {
            height: 38px;
            border-bottom: 1px solid #ccc;
            padding-left: 20px;
            box-sizing: border-box;
            line-height: 38px;
            font-size: 14px;
        }

        .listBox {
            display: flex;
            height: 130px;
            font-size: 12px;
            color: #999;

            img {
                width: 80px;
            }

            .price {
                color: #3c3c3c;
                font-weight: 700;
                font-size: 14px;
            }

            .allPrice {
                color: $theme;
                font-size: 14px;
                font-weight: 700;
            }

            .delBtn {
                background-color: #fcfcfc;
            }

            div {
                width: 120px;
                margin-left: 20px;
                display: flex;
                margin: auto;
                padding: 10px;
                box-sizing: border-box;

                .add,
                .less {
                    width: 20px;
                    height: 20px;
                }

                .count {
                    width: 36px;
                    height: 20px;
                }
            }

            & div:nth-child(1) {
                width: 60px;
            }

            & div:nth-child(2) {
                width: 100px;
            }

            & div:nth-child(3) {
                width: 350px;
            }
        }
    }

    .bottom {
        position: fixed;
        bottom: 0px;
        background-color: #e5e5e5;
        width: 1000px;
        height: 50px;
        font-size: 12px;
        color: #666;
        padding-left: 10px;
        box-sizing: border-box;

        .number {
            float: left;
            margin-right: 10px;
            line-height: 50px;
        }

        .btns {
            margin-right: 10px;
            line-height: 50px;
            float: left;

            button {
                color: #666;
                font-size: 12px;
                background-color: #e5e5e5;
            }
        }

        .totalPrice {
            line-height: 50px;
            margin-right: 10px;
            float: right;

            span {
                color: $theme;
                font-size: 26px;
                font-weight: 700;
            }
        }

        .settlement {
            line-height: 50px;
            width: 120px;
            color: #fff;
            background-color: $theme;
            float: right;
        }
    }
}

.pageHandler {
    margin-left: 40px;
}

.placeArea1,
.placeArea2 {
    border: 1px solid #ccc;
    border-radius: 0px;
    width: 60px;
    height: 26px;
}